﻿<form role="form" name="form" ng-controller="dateValidator">
    <div ng-controller="popupLayCan">
        <p>From:</p>
            <p><span class="k-widget k-datepicker k-header k-input">
                <span class="k-picker-wrap k-state-default">
                    <input kendo-date-picker type="text" class="k-input" name="{{'LC_F'+id}}" k-parse-formats="formatsDate" k-format="formatDate"
                        ng-model="LC_F" k-ng-model="LayCan.FromDate"
                        ng-blur="LayCan.FromDate=checkOldMatch(LC_F, LayCan.FromDate);changeOrderDate('LC_F'); resetDate('LC_F'+id, LayCan.FromDate, id)"/>
                    <span class="k-select" role="button" unselectable="on"><span class="k-icon k-i-calendar" unselectable="on">select</span></span>
                </span>
            </span>
        <button type="button" class="close" ng-click="LayCan.FromDate=clearDate();
                changeOrderDate('LC_F');  LC_F=clearDate()"
            aria-hidden="true">
            &times;
        </button></p>
        <p>To:</p>
            <p><span class="k-widget k-datepicker k-header k-input">
                <span class="k-picker-wrap k-state-default">
                    <input kendo-date-picker type="text" class="k-input" name="{{'LC_T'+id}}" k-parse-formats="formatsDate" k-format="formatDate"
                        ng-model="LC_T" k-ng-model="LayCan.ToDate"
                        ng-blur="LayCan.ToDate=checkOldMatch(LC_T, LayCan.ToDate);
                        changeOrderDate('LC_T'); resetDate('LC_T'+id, LayCan.ToDate, id)" />
                    <span class="k-select" role="button" unselectable="on"><span class="k-icon k-i-calendar" unselectable="on">select</span></span>
                </span>
            </span>
        <button type="button" class="close" ng-click="LayCan.ToDate=clearDate();
                changeOrderDate('LC_T');  LC_T=clearDate()"
            aria-hidden="true">
            &times;
        </button></p>
    </div>
</form>

